package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.ruishou.RuiShouAreaData;
import com.yanqu.road.entity.activity.ruishou.RuiShouUserData;
import com.yanqu.road.entity.activity.ruishou.config.RuiShouActionConfig;
import com.yanqu.road.entity.activity.ruishou.config.RuiShouActionTenConfig;
import com.yanqu.road.entity.activity.ruishou.config.RuiShouAreaConfig;
import com.yanqu.road.entity.activity.ruishou.config.RuiShouMonsterConfig;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class RuiShouBussiness {

    public static Map<Integer, RuiShouAreaConfig> getRuiShouAreaConfigMap(int activityId) {
        return DaoHelper.getRuiShouConfigDaoImpl().getRuiShouAreaConfigMap(activityId);
    }

    public static Map<Integer, RuiShouMonsterConfig> getRuiShouMonsterConfigMap(int activityId) {
        return DaoHelper.getRuiShouConfigDaoImpl().getRuiShouMonsterConfigMap(activityId);
    }

    public static Map<Integer, RuiShouActionConfig> getRuiShouActionConfigMap(int activityId) {
        return DaoHelper.getRuiShouConfigDaoImpl().getRuiShouActionConfigMap(activityId);
    }

    public static Map<Integer, RuiShouActionTenConfig> getRuiShouActionTenConfig(int activityId) {
        return DaoHelper.getRuiShouConfigDaoImpl().getRuiShouActionTenConfigMap(activityId);
    }

    public static RuiShouUserData getRuiShouUserData(int activityId, long userId) {
        return DaoHelper.getRuiShouUserDataDaoImpl().getUserData(activityId, userId);
    }

    public static boolean addRuiShouUserData(RuiShouUserData userData) {
        return DaoHelper.getRuiShouUserDataDaoImpl().add(userData);
    }

    public static boolean updateRuiShouUserData(RuiShouUserData userData) {
        return DaoHelper.getRuiShouUserDataDaoImpl().update(userData);
    }

    public static Map<Integer, RuiShouAreaData> getRuiShouAreaDataMap(int activityId, long userId) {
        return DaoHelper.getRuiShouAreaDataDaoImpl().getRuiShouAreaDataMap(activityId, userId);
    }

    public static boolean addRuiShouAreaData(RuiShouAreaData areaData) {
        return DaoHelper.getRuiShouAreaDataDaoImpl().add(areaData);
    }

    public static boolean updateRuiShouAreaData(RuiShouAreaData areaData) {
        return DaoHelper.getRuiShouAreaDataDaoImpl().update(areaData);
    }
}
